import Vue from 'vue'
import Router from 'vue-router'

const home = () => import("../views/home/Home")
const category = () => import("../views/category/category")
const cart = () => import("../views/cart/cart")
const profile = () => import("../views/profile/profile")

Vue.use(Router)


const routes = [
  {
    path: "/home",
    component: home
  },
  {
    path: "/category",
    component: category
  },
  {
    path: "/cart",
    component: cart
  },
  {
    path: "/profile",
    component: profile
  }
]

const router = new Router({
  routes: routes,
  mode: 'history'
})
export default router
